import styled from "styled-components"

// 首页
export const HomeWrapper = styled.div`
  overflow:hidden;
  width:960px;
  margin:0 auto;
`

// 首页左列
export const HomeLeft = styled.div`
  float: left;
  margin-left:15px;
  padding-top:30px;
  width:625px;
  .banner-img{
    cursor: pointer;
    border-radius: 6px;
    width:100%;
    height:270px;
  }
`
// 左列 Topic
export const TopicWrapper = styled.div`
  overflow:hidden;
  padding:20px 0 10px 0;
  margin-left: -18px;
  border-bottom: 1px solid #dcdcdc;
`
// 左列 Topic内容
export const TopicItem = styled.div`
  float:left;
  height:32px;
  margin-left:18px;
  line-height:32px;
  padding-right:10px;
  background:#f7f7f7;s
  font-size:14px;
  color:#000;
  border: 1px solid #dedede;
  border-radius:4px;
  margin-bottom:18px;
  .topic-pic{
     display:block;
     float:left;
     width:32px;
     height:32px;
     margin-right:10px;
  }
`

// 左列 文章
export const ListItem = styled.div`
  overflow:hidden;
  padding:20px 0;
  border-bottom: 1px solid #dcdcdc;
  .pic {
    width:125px;
    height:80px;
    display:block;
    float:right;
    border-radius:10px;
    background-size: cover; 
  }
`
// 左列 文章左列
export const ListInfo = styled.div`
  width:480px;
  float:left;
  margin-right:20px;
  .title{
    line-height:27px;
    font-size:18px;
    font-weight:bold;
    color:#333;
    margin-bottom:8px;
  }
  .desc{
    line-height:24px;
    font-size:13px;
    color:#999;
  }
`

// 右列 
export const HomeRight = styled.div`
  width:280px;
  float:right;
`

export const RecommendWrapper = styled.div`
  margin:30px 0;
`
export const RecommendItem = styled.div`
  margin-bottom:6px;
  height:50px;
  border-radius:4px;
  background: url( ${ (props)=>props.imgUrl } );
  background-size:contain;
`

export const WriterWrapper = styled.div`
  .span{
    font-size:14px;
    color:#969696;
  }
`
export const WriterItem = styled.div`
  .pic{
    float:left;
    weight:48px;
    height:48px;
    border-radius: 50%;
    cursor: pointer;
    margin: 10px 10px 10px 0;
  }
  .title{
    display:block;
    margin: 18px 60px 6px 0;
    float:left;
    color: #333;
    font-size:14px;
    cursor: pointer;
  }
  .desc{
    width:222px;
    margin:-28px 60px 0 60px;
    display:block;
    float:left;
    font-size:12px;
    color:#969696;
  }
  .gz{
    float: right;
    margin-top: 5px;
    font-size: 13px;
    color: #42c02e;
  }
`
